import request from '@/utils/request'

/**
 * 注册
 */
export const userRegService = (obj) => {
  return request.post('/api/reg', {
    ...obj
  })
}

/**
 * 登录
 */
export const userLoginService = (obj) => {
  return request.post('/api/login', {
    ...obj
  })
}

/**
 * 获取用户的基本信息
 */
export const userGetInfoService = () => request.get('/my/userinfo')
